package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerService {
    void delete(Long id);

    void save(Customer customer);

    Customer get(Long id);

    List<Customer> listAll();

    void update(Customer customer);

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    PageInfo<Customer> query(QueryObject qo);

    /**
     * 查询手机号码是否已存在数据库
     *
     * @param tel
     * @return
     */
    Customer checkTel(String tel);

    /**
     * 查询员工状态
     *
     * @return
     */
    List<Customer> selectForStatus();

    /**
     * 修改客户状态
     */
    void changeStatus(Customer customer);
}
